package com.enumdemo;

//枚举类可以拥有方法和字段
public enum HourlyPayGrade {

	APPENTICE{

		@Override
		public double rate() {
			return 1.0;
		}

	},
	LEUTENANT_JOURNEYMAN{

		@Override
		public double rate() {
			return 1.2;
		}

	},
	JOURNEYMAN{

		@Override
		public double rate() {
			return 1.5;
		}

	},
	MASTER{

		@Override
		public double rate() {
			return 2.0;
		}

	};

	public abstract double rate();

}
